
#include "inetaddr.h"


int main ( int argc, char* argv[] )
{

	InetAddr address ( AF_INET, "127.0.0.1", 1000 ) ;
	
	int				family	= address.family () ;
	const char *	addr	= address.address () ;
	unsigned short	port	= address.port () ;


	return 0 ;
}



/*
#include <boost/any.hpp>


struct placeholder
{
	placeholder ( void ) { }
	virtual ~placeholder ( void ) { }

	virtual const std::type_info & type ( void ) const = 0 ;
	virtual placeholder * clone ( void ) const = 0 ;
};



template<typename ValueType>
class holder : public placeholder
{
public: // structors
	holder(const ValueType & value)
		: held(value)
	{
	}

public: // queries
	virtual const std::type_info & type ( void ) const
	{
		return typeid(ValueType);
	}

	virtual placeholder * clone ( void ) const
	{
		return new holder(held);
	}

public: // representation
	ValueType held;
};
*/

struct sockaddr_in ;
struct sockaddr_in6 ;
